"""
函数定义
Lambda 匿名函数
"""
l = lambda x: x * x
print(l(5))
print(l)

l1 = lambda x: 'x>10' if x > 10 else 'x<10'
print(l1(100))

my_list = [["a", 33], ["b", 99], ["c", 0]]
print(my_list)
# 降序
my_list.sort(key=lambda element: element[1], reverse=True)
print(my_list)
# 升序
my_list.sort(key=lambda element: element[0], reverse=True)
print(my_list)
